<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    * {
        margin: 0;
        padding: 0;
    }
    
    ul,
    ol {
        list-style: none;
    }
    
    body {
        background: url(背景5.jpg);
    }
    
    .main {
        width: 900px;
        height: 350px;
        margin: 150px auto;
        overflow: hidden;
        text-align: center;
    }
    
    li {
        width: 160px;
        float: left;
        border-left: 1px solid black;
        position: relative;
        transition: all 1s;
    }
    
    li img {
        width: 600px;
        height: 350px;
    }
    
    .main:hover li {
        width: 40px;
    }
    
    .main li:hover {
        width: 650px;
    }
    
    .words p {
        font-size: 60px;
        color: black;
        text-align: center;
        margin-bottom: 30px;
    }
</style>

<body>
    <ul class="main">
        <li>
            <img src="pic1.jpg" alt="">
        </li>
        <li>
            <img src="pic2.jpg" alt="">
        </li>
        <li>
            <img src="pic3.jpg" alt="">
        </li>
        <li>
            <img src="pic4.jpg" alt="">
        </li>
        <li>
            <img src="pic5.jpg" alt="">
        </li>

    </ul>
    <div class="words">
        <p>Museum Of Contemporary Imaging</p>
    </div>
</body>

</html>